//
//  OrderInfoGroup.m
//  AmountBody
//
//  Created by Qiu Jishuai on 2018/1/13.
//  Copyright © 2018年 RCMTM. All rights reserved.
//

#import "OrderInfoGroup.h"

@implementation OrderInfoGroup
- (instancetype)init {
    if (self = [super init]) {
        self.title = @"分组";
        NSMutableArray *items = [NSMutableArray array];
        //10 + arc4random_uniform(10)
        for (NSInteger i = 0; i < 2; i ++) {
            OrderInfoItem *item = [[OrderInfoItem alloc] init];
            item.title = [NSString stringWithFormat:@"%@--%@", @(i), @"呵呵呵"];
            NSString *detail = @"细节细节细节";
            NSMutableArray *details = [NSMutableArray array];
            for (NSInteger i = 0; i < arc4random_uniform(10); i ++) {
                [details addObject:detail];
            }
            item.detail = [details componentsJoinedByString:@""];
            [items addObject:item];
        }
        self.items = items.copy;
    }
    return self;
}
@end
